<template>
  <el-input
      :placeholder=placeholder
      v-model="searchNameL"
      clearable style="width: 250px"
      @keyup.enter.native="handleSearch()">
  </el-input>
</template>

<script>
export default {
  name:"searchCOM",
  props:{
    placeholder:{
    default: () => {
      return "请输入内容"
  }}
  },
  data(){
    return{
      searchNameL:''
    };
  },
  methods:{
    handleSearch() {
      this.$emit('search',this.searchNameL)
    },
  }
}

</script>

<style>

</style>